/**
 * 
 * Copyright (C) 2015 by Elcom Software Company
 *
 * @id: PrimitiveObject.java, Mar 19, 2015
 *
 */
package com.nip.commons.json.test;

import com.nip.commons.json.annotations.JSONElement;
import com.nip.commons.json.annotations.JSONObject;
import com.nip.commons.json.commons.JSONCommon.JSONType;

/**
 * @author ThangNM<thangnm@elcom.com.vn>
 * 
 * @version v
 */
@JSONObject(name = "PrimitiveObject")
public class PrimitiveObject {

    private String name;
    private int number;
    private JsonObject ob;
    private Integer[] arr;
    private JsonObject[] jarr;

    @JSONElement(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @JSONElement(name = "number")
    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    @JSONElement(name = "user", type=JSONType.JSON_OBJECT)
    public JsonObject getOb() {
        return ob;
    }

    public void setOb(JsonObject ob) {
        this.ob = ob;
    }

    @JSONElement(name="array",type=JSONType.ARRAY)
    public Integer[] getArr() {
        return arr;
    }

    public void setArr(Integer[] arr) {
        this.arr = arr;
    }

    @JSONElement(name="JArray",type=JSONType.JSON_ARRAY)
    public JsonObject[] getJarr() {
        return jarr;
    }

    public void setJarr(JsonObject[] jarr) {
        this.jarr = jarr;
    }
    
    
    

}
